home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / pascal / djsquash.com / C_TEST.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-04-06  |  354 b   |  20 lines

  1. #include <stdio.h>
  2. FILE *fin, *fout;
  3.  
  4. main () {
  5.      char c;
  6.      if ((fin = fopen("twobox.dat","rb")) == NULL) {
  7.       cputs("No input file!");
  8.       exit (2);
  9.       }
  10.      c_init();
  11.      fout = fopen("twobox_o.dat","wb");
  12.      while (!feof(fin)) {
  13.       c=fgetc(fin);
  14.       c_filt(c);
  15.       }
  16.      }
  17. void pchar (int xc) {
  18.      fputc(xc,fout);
  19.      }
  20.